package May26ch20ex3;

public class MyGenericType {
	public static void main(String[] args) {

		Parser<NumberList> numberParser = new NumberParser();
		NumberList numberList = numberParser.parse("10,20,30");

		System.out.println(numberList);

		Parser<DateList> dateParser = new DateParser();
		DateList dateList = dateParser
				.parse("2011-01-01,2012-02-02,2013-03-03");

		System.out.println(dateList);

		Parser<PriceList> priceParser = new PriceParser();
		PriceList priceList = priceParser.parse("10.11,10.11");
		System.out.println(priceList);
	}
}

// third parser that parses amounts using big decimal
// keywords: price (not number or date)
// inside list type: bigD
// 2 decimal points